import request from "@/utils/request.js";

// 首页公告
export function getHomeAnnouncement(a) {
	return request.get("/api/notice/list?noticeType="+a);
}
// 首页banner
export function getindexbanner(a) {
	return request.get("/api/banner/get-banner?type="+a);
}
//首页咨询师等级
export function getConsultantLevel(a) {
	return request.get("/api/dict/list?dictType="+a);
}
//首页查询心理咨询文章列表
export function getArticlesCounselingOfList() {
	return request.get("/api/article/list");
}
//首页查询心理咨询文章详情
export function getArticlesCounselingOfInfo(id) {
	return request.get("/api/article/"+id);
}
//首页查询推荐咨询师
export function getRecommendUserList() {
	return request.get("api/adviser/recommend-user");
}
//首页查询未读数量
export function getMessageCount(data) {
	return request.get("api/messages/messageCount?status="+data);
}
//首页查询咨询类别
export function getAskTypeList() {
	return request.get("/api/askType/list");
}
//查询首页帮助人数
export function getIndexPersonCount() {
	return request.get("api/messages/indexPersonCount");
}
// 获取问题列表
export function getQuestionList(data) {
	return request.get("api/question/get-page-list",data);
}
//咨询师详情页
export function getUserinfo(data) {
	return request.get("user/expert/info",data);
}
//查询分类列表
export function categorySelectList(data) {
	return request.get("api/category/select-list",data);
}

export function serviceList(data) {
	 return request.get("api/order/service-list",data);
}



//查询部门擅长模块
export function getUserdeptList(data) {
	return request.get("user/expert/deptList",data);
}

//用户数量计算
export function getUserCoverss(data) {
	return request.get("image/coverss",data);
}
//擅长模块
export function getebDeptModule(data) {
	return request.get("ebDeptModule/getList",data);
}

//从业时间
export function getWorkingtime(data) {
	return request.get("user/expert/Working/time",data);
}


//修改咨询师状态
export function getupdateExpertsState(data) {
	return request.get("experts/updateExpertsState",data);
}
//咨询师页面首页我的代办
export function getExpertsIndex(data) {
	return request.get("experts/getExpertsIndex",data);
}
//咨询师快速咨询查询
export function getClassification(data) {
	return request.post("quick/Classification",data);
}

//咨询师快速咨询查询订单创建
export function getConsultingTheOrder(data) {
	return request.post("quick/ConsultingTheOrder",data);
}

//每个咨询师等级对应的价格
export function getCorrespondingPrice(data) {
	return request.get("quick/CorrespondingPrice",data);
}
//咨询师预约
export function getinsert(data) {
	return request.post("ebConsultantTime/insert",data);
}
//根据咨询师的id获取咨询师预约的时间
export function getexpertsID(data) {
	return request.get("ebConsultantTime/expertsID",data);
}

//根据订单编号修改订单状态
export function getModifyTheState(data) {
	return request.get("ebConsultantTime/ModifyTheState",data);
}
//根据订单号修改快速咨询单状态
export function updateQuickConsultingStatus(params) {
	return request.get("ebConsultantTime/updateQuickConsultingStatus",params);
}
// 首页广告位
export function getHomepageAdvertisingSpace(data) {
	return request.post("HomepageAdvertisingSpace",data);
}

// 个人中心广告位
export function getPersonalAdvertisingSpace(data) {
	return request.post("PersonalAdvertisingSpace",data);
}
//新增咨询
export function getQuicksave(data) {
	return request.post("quick/Quicksave",data);
}

//我的订单分页列表
export function getmyorder(data) {
	return request.get("myorder/myorder",data);
}

//根据的订单编号查看订单详情

export function getorderinfo(data) {
	return request.get("myorder/orderinfo",data);
}
// 我的收藏列表
export function getcollectuser(data) {
	return request.get("collect/user",data);
}
//取消收藏
export function getcancel(data) {
	return request.post("collect/cancel/"+data);
}

//会员权益
export function getofmembers() {
	return request.get("user/privilege/interests/ofmembers");
}
//会员开通
export function getoOpened(data) {
	return request.get("user/privilege/Members/Opened",data);
}

//会员开通的订单
export function getocreateMembers(data) {
	return request.post("myorder/createMembers",data);
}

//会员开通回调
export function getoTheCallback(data) {
	return request.get("user/privilege/The/callback",data);
}

// 取消订单

export function getocancel(data) {
	return request.get("myorder/TheCallback",data);
}
// 关注

export function getoinvite(data) {
	return request.post("Focus/invite",data);
}

//收藏
export function getocollectadd(data) {
	return request.get("collect/add",data);
}
//虚拟电话
export function getVirtualPhone(data) {
	return request.get("user/expert/VirtualPhone",data);

}

//创建订单

export function getcreate(data) {
	return request.post("order/create",data);

}

//包月回调
export function getMonthlyCallback(data) {
	return request.get("myorder/MonthlyCallback",data);

}
//咨询文件分页列表
export function getlistss(data) {
	return request.get("user/upload/list",data);

}
//我的优惠券
export function getcouponlist(data) {
	return request.get("api/coupon/get-list-user",data);

}
//咨询必读
export function getlist(data) {
	return request.get("list",data);
}
//订单退款申请

export function getrefund(data) {
	return request.post("order/refund",data);
}

//获取二维码

export function getqrcode(data) {
	return request.post("qrcode/get",data);
}
//咨询指南
export function getguide(data) {
	return request.get("guide",data);
}
//推广人列表
export function getpeople(data) {
	return request.get("spread/people",data);
}
//餐饮咨询师页面轮播图
export function getexpertsRotationChart(data) {
	return request.post("expertsRotationChart",data);
}

//我的问答分页列表
export function getgetMyList(data) {
	return request.get("ebReleaseQuestion/getMyList",data);
}
//咨询下载文件
export function getbytes(data) {
	return request.get("user/upload/bytes",data);
}
//
//查看是否是咨询师
export function getselect(data) {
	return request.get("user/expert/select",data);
}
//包月回调
export function getmyorderMonthlyCallback(data) {
	return request.get("myorder/MonthlyCallback",data);
}
//服务消息通知
export function getnoticeMessage(data) {
	return request.get("experts/noticeMessage",data);
}
//解绑电话
export function getunbundling(data) {
	return request.get("user/expert/unbundling",data);
}
//
export function getClassificationAddMoney(data) {
	return request.get("quick/ClassificationAddMoney",data);
}
//我的我的分销列表

export function getdistributionlist(data) {
	return request.get("api/promoter/get-fen",data);
}
//推荐人

export function getreferees(data) {
	return request.get("UserBrokerageRecord/referees",data);
}
//回显

export function getuserDetail(data) {
	return request.get("userDetail",data);
}
//确认修改咨询师
export function getconfirm(data) {
	return request.get("user/expert/confirm",data);
}

// 分销中心
export function getDistributionCenter() {
	return request.get("api/promoter/getDistributionCenter");
}

// 我的团队
export function getMyTeam() {
	return request.get("api/promoter/getMyTeam");
}

// 提现明细
export function getWithdrawalDetail(data) {
	return request.get("api/promoter/getWithdrawalDetail", data);
}

// 查询咨询订单列表
export function userOrderList(data) {
	return request.get("api/store/userOrder/list", data);
}

// 推广小程序码
export function spreadBanner() {
	return request.post("api/user/spread-banner");
}

// 问答详情 -》 问题
export function detailQuestion(data) {
	return request.get("api/question/detailQuestion?questionId=" + data);
}

// 问答详情 -》 回复
export function detailAnswer(data) {
	return request.get("api/question/detailAnswer", data);
}

// 查询咨询类别
export function askDetail(data) {
	return request.get("api/askType/detail?typeId="+data);
}

// 更新阅读量
export function updateReadNum(data) {
	return request.get("api/question/updateReadNum?questionId="+data);
}

// 商城购物车
export function cartList(data) {
	return request.get("api/cart/cartList", data);
}

// 批量删除
export function cartRemove(data) {
	return request.get("api/cart/" + data);
}

// 获取用户默认地址
export function defaultAddress() {
	return request.get("api/product/defaultAddress");
}

// 获取用户收货地址列表
export function addressList() {
	return request.get("api/product/addressList");
}

// 新增收货地址
export function addAddress(data) {
	return request.post("api/product/add-address", data);
}

// 修改购物车数量
export function editCartCount(data) {
	return request.get("api/cart/edit-count", data);
}

// 积分商城列表
export function integralProductList(data) {
	return request.get("api/product/integralProductList", data);
}

// 积分商城获取我的积分
export function integralMy() {
	return request.get("api/user/integralMy");
}

// 商城积分明细
export function integralDetail(data) {
	return request.get("api/user/integralDetail", data);
}

// 兑换记录
export function integralRecordList(data) {
	return request.get("api/store/order/integralRecordList", data);
}

//查询服务消息
export function serviceMessage() {
	return request.get("api/messages/serviceMessage");
}


//查询文字代办
export function writtenAgent() {
	return request.get("api/messages/writtenAgent");
}

//查询电话代办
export function telephoneAgent() {
	return request.get("api/messages/telephoneAgent");
}

//查询咨询订单
export function consultingOrder(data) {
	return request.get("api/messages/consultingOrder",data);
}

// 查询订单详情
export function userOrderInfo(data) {
	return request.get("api/store/userOrder/orderDetail", data);
}

// 取消订单
export function cancellationOrder(data) {
	return request.get("api/store/userOrder/cancellationOrder", data);
}


// 商城订单详情
export function shopOrderDetail(data) {
	return request.get("api/store/order/shopOrderDetail?orderId=" + data);
}

// 取消订单
export function cancelOrder(data) {
	return request.post("api/store/order/cancel-order", data);
}

// 确认收货
export function takeOrder(data) {
	return request.post("api/store/order/take-order", data);
}


// 确认收货
export function editUser(data) {
	return request.post("edit-user", data);
}

// 删除收货地址
export function removeAddress(data) {
	return request.get("api/product/" + data);
}

// 购物车余额购买
export function blanceShop(data) {
	return request.post("api/product/blanceShop", data);
}


// 消息列表
export function messageList(data) {
	return request.get("system/message/list", data);
}

// 我的收藏列表
export function collectionList(data) {
	return request.get("api/relation/list", data);
}

// 商城个人中心
export function shopPersonCenter() {
	return request.get("api/store/order/shopPersonCenter");
}

// 每日签到
export function dailyCheck() {
	return request.get("api/user/dailyCheck");
}

// 商城我的订单列表
export function shopOrderList(data) {
	return request.get("api/store/order/shopOrderList", data);
}

// 会员中心查询
export function vipList(data) {
	return request.get("api/category/vipList", data);
}

// 积分兑换
export function integralShop(data) {
	return request.post("api/product/integralShop", data);
}

// 退款查看订单商品详情
export function orderShopDetail(id) {
	return request.get("api/store/order/detail/" + id);
}

// 货物状态
export function goodsStatus() {
	return request.get("api/message/goodsStatus");
}

// 退款原因
export function refundReason() {
	return request.get("api/message/refundReason");
}

// 申请退款
export function refundApply(data) {
	return request.post("api/store/order/refundApply/", data);
}

